{% extends "base.html" %}

{% block content %}
<h1>Add a new category</h1>

<form action="submit" method="post">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th>Category</th>
            <td>
                <input type="text" name="title" />
                {% if 'title' in errors %}<span class="error">{{ errors.title }}</span>{% endif %}
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" name="cancel" value="Cancel" />
                <input type="submit" value="Submit" />
            </td>
        </tr>
</form>

{% endblock %}